package com.cn.controller;

import com.cn.service.ShopService.InventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName GoodsController
 * @Description TODO
 * @Author yujiajing
 * @Date 2022/10/17 10:04
 * @Version 1.0
 */
@Controller
@RequestMapping("/inventory")
/**
 * 进货
 */
public class InventoryController {
    @Autowired
    InventoryService inventoryService;
    @RequestMapping(value = "/updateById",method = RequestMethod.POST)
    @ResponseBody
    public void update(Integer goods_inventory,String goods_id){

        System.out.println(goods_inventory);
        System.out.println(goods_id);
/*        InventoryService inventoryService=new InventoryService();*/
        inventoryService.AddInventoryById(goods_inventory,goods_id);
    }
}
